/*
 * CharacterManager.cpp
 *
 *  Created on: 26-nov.-2013
 *      Author: Axel
 */

#include "CharacterManager.h"
#include <stdlib.h>

CharacterManager::CharacterManager() {
	player = NULL;
}

CharacterManager::~CharacterManager() {
	delete player;
}

void CharacterManager::addPlayer(double x, double y, double width, double height, double speed, double angle) {
	player = new Player(x, y, width, height, speed, angle);
}

Player* CharacterManager::getPlayer() {
	return player;
}

void CharacterManager::render() {
	player->render();
}
